package structure_pattern.adapter_pattern;

/**
 * @author fly
 * @since 2022/8/19 17:11
 */
public class EncryptingTwoAdapter implements DatabaseOperation{
    /**
     * 组合 适配着类型
     */
    private EncryptingTwo encryptingTwo;

    /**
     * 适配器类构造方法，初始化适配者类
     */
    public EncryptingTwoAdapter() {
        encryptingTwo = new EncryptingTwo();
    }

    @Override
    public void encrypting() {
        encryptingTwo.encrypting();
    }
}